package com;

public class test1 {
  public static void main(String[] args) {
    //判断三个数的最大值
    int a = 30;
    int b = 20;
    int c = 10;
    int max;
    max = a > b ? a : b;
    if (c > max) {
      max = c;
    }
    System.out.println(max);
  }
}
